package cn.ecut.service;

import cn.ecut.mapper.UserMapper;
import cn.ecut.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User login(Map map){
        return userMapper.loginCheck( map);
    }
    public void register(User user){
        userMapper.register(user);
    }
    public void alterPwd(User user){ userMapper.updateUser(user);
    }
    public void updateUserInfo(User user){
        userMapper.updateUserInfo(user);
    }
}
